// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_FIN_MAP_BILLING_IMPORT
// * CreateDate    : 2014-06-05 18:29:49
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:29:49
// * LastChanger   : 2014-06-05 18:29:49
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class FinMapBillingImportEntity : EntityBase
    {
        public FinMapBillingImportTable TableSchema
        {
            get
            {
                return FinMapBillingImportTable.Current;
            }
		}
		
		public FinMapBillingImportEntity()
        {

        }
		
		public FinMapBillingImportEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.BillingId = Convert.ToString(CommonFunctions.ToObject(dr["BILLING_ID"]));
			this.ImportItemId = Convert.ToString(CommonFunctions.ToObject(dr["IMPORT_ITEM_ID"]));
			this.BillingAmount = Convert.ToDecimal(CommonFunctions.ToObject(dr["BILLING_AMOUNT"]));
        }
		
		public FinMapBillingImportEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.BillingId = Convert.ToString(CommonFunctions.ToObject(dr["BILLING_ID"]));
			this.ImportItemId = Convert.ToString(CommonFunctions.ToObject(dr["IMPORT_ITEM_ID"]));
			this.BillingAmount = Convert.ToDecimal(CommonFunctions.ToObject(dr["BILLING_AMOUNT"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return FinMapBillingImportTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public string BillingId
        {
            get { return Convert.ToString(GetData(FinMapBillingImportTable.C_BILLING_ID)); }
            set { SetData(FinMapBillingImportTable.C_BILLING_ID, value); }
        }
		
        [DataMember]
        public string ImportItemId
        {
            get { return Convert.ToString(GetData(FinMapBillingImportTable.C_IMPORT_ITEM_ID)); }
            set { SetData(FinMapBillingImportTable.C_IMPORT_ITEM_ID, value); }
        }
		
        [DataMember]
        public decimal BillingAmount
        {
            get { return Convert.ToDecimal(GetData(FinMapBillingImportTable.C_BILLING_AMOUNT)); }
            set { SetData(FinMapBillingImportTable.C_BILLING_AMOUNT, value); }
        }
		
		#endregion
	}
	
	
}	

